﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 工序流转单
    /// </summary>
    [Table("PB_CirculationBill")]
    public partial class PB_CirculationBill
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 类型：0-翻新件；1-新制件
        /// </summary>
        public Int32? Type { get; set; }

        /// <summary>
        /// 工厂ID
        /// </summary>
        public String FactoryId { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        public String DeviceId { get; set; }

        /// <summary>
        /// 生产任务单ID
        /// </summary>
        public String TaskId { get; set; }

        /// <summary>
        /// 生产任务单明细ID
        /// </summary>
        public String TaskDetailId { get; set; }

        /// <summary>
        /// 派工单ID
        /// </summary>
        public String DispatchId { get; set; }

        /// <summary>
        /// 派工单明细ID
        /// </summary>
        public String DispatchDetailId { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public String ProcedureId { get; set; }

        /// <summary>
        /// 托盘ID
        /// </summary>
        public String TrayId { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 任务数量
        /// </summary>
        public Double? TaskQuantity { get; set; }

        /// <summary>
        /// 报工数量
        /// </summary>
        public Double? WorkReportQuantity { get; set; }

        /// <summary>
        /// 报工人ID
        /// </summary>
        public String WorkerId { get; set; }

        /// <summary>
        /// 报工时间
        /// </summary>
        public DateTime? SendTime { get; set; }

        /// <summary>
        /// 质检数量
        /// </summary>
        public Double? QualityNums { get; set; }

        /// <summary>
        /// 质检员ID
        /// </summary>
        public String QualityUserId { get; set; }

        /// <summary>
        /// 质检时间
        /// </summary>
        public DateTime? QualityTime { get; set; }

        /// <summary>
        /// 统计数量
        /// </summary>
        public Double? StatisticalQuantity { get; set; }

        /// <summary>
        /// 统计员ID
        /// </summary>
        public String Statistician { get; set; }

        /// <summary>
        /// 统计时间
        /// </summary>
        public DateTime? StatisticalTime { get; set; }

        /// <summary>
        /// 接收人ID
        /// </summary>
        public String Receiver { get; set; }

        /// <summary>
        /// 接收时间
        /// </summary>
        public DateTime? ReceivingTime { get; set; }

        /// <summary>
        /// 接收数量
        /// </summary>
        public Double? ReceivingQuantity { get; set; }

        /// <summary>
        /// 其他增补项（json）
        /// </summary>
        public String Reamrk { get; set; }

        /// <summary>
        /// 状态：枚举待定义
        /// </summary>
        public Int32? Status { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 货位Id
        /// </summary>
        public String LocationId { get; set; }
        /// <summary>
        /// 已领取数量
        /// </summary>
        public Double? ReadyNums { get; set; }
        /// <summary>
        /// 领取Json
        /// </summary>
        public String DispatchRemark { get; set; }

        /// <summary>
        /// 包Id
        /// </summary>
        public string PackId { get; set; }

        /// <summary>
        /// 是否外协(0-否;1-是)
        /// </summary>
        public Boolean? IsOutsourcing { get; set; }

        /// <summary>
        /// 隶属成品
        /// </summary>
        public string SubordinateProduct { get; set; }

        /// <summary>
        /// 入库通知单Id
        /// </summary>
        public string NoticeId { get; set; }

    }
}